package com.behelpful.demo.quartz.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.behelpful.common.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;

/**
 * @author Alay
 * @date 2021-10-31 17:34
 * @since
 */
@Getter
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum JobStatusEnum implements IEnum {


    /**
     * 未发布
     */
    UN_PUBLISH(1),
    /**
     * 已发布
     */
    PUBLISHED(2),
    /**
     * 运行中
     */
    RUNNING(3),
    /**
     * 暂停
     */
    PAUSE(4),
    /**
     * 移除
     */
    REMOVED(5);


    /**
     * 状态码
     */
    @EnumValue
    private int code;

    JobStatusEnum(int code) {
        this.code = code;
    }
}
